from django.db import models
from django.db.models import Model

from utils.BaseModel import BaseModel

# 用户表
# Create your models here.
class UserModels(BaseModel):
    username=models.CharField(max_length=24,default="",verbose_name="用户名")
    email=models.CharField(max_length=50,default="",verbose_name="邮箱")
    phone=models.CharField(max_length=20,default="",verbose_name="手机号")
    password=models.CharField(max_length=20,verbose_name="密码")
    level=models.IntegerField(default=0)
    score=models.IntegerField(default=0)
    class Meta:
        db_table='tb_user'
    def __str__(self):
        return self.username